import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'


// 引入自定义插件
import { imgLazyPlugin } from "@/directives"
// 引入自定义组件插件
import { componentPlugin } from "@/components"
// 引入pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// 引入重置样式文件
import "@/styles/common.scss"


const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(imgLazyPlugin)
app.use(componentPlugin)
app.mount('#app')
